<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>

    function Model(){
        this.getNav = function(){
            return "导航数据"
        }
        this.getBanner = function(){
            return "轮播图数据"
        }
    }
    function View(){
        this.menuList = function(data){
            console.log("这是下拉菜单视图", data);
        }
        this.tab = function(data){
            console.log("这是选项卡视图", data);
        }
        this.nav = function(data){
            console.log("这是导航视图", data);
        }
    }
    function Control(){
        const m = new Model()
        const v = new View()
        this.createNav = function(){
            const d = m.getNav()
            v.nav(d);
        }
        this.createTab = function(){
            const d = m.getBanner()
            v.tab(d);
        }
    }

    const c = new Control();
    c.createNav();

    c.createTab();

    
</script>
</html>